<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>火影忍者手游 - 官方网站</title>
    <link rel="stylesheet" href="./css/bootstrap.css">
    <link rel="stylesheet" href="./css/bootstrap-icons/bootstrap-icons.css">
    <script src="./js/jquery-3.7.1.min.js"></script>
    <script src="./js/bootstrap.bundle.js"></script>
    <style>
        body {
            background-color: #f8f9fa;
            color: #333;
            overflow-x: hidden;
        }

        .bg-naruto {
            background-color: #1D3557;
        }

        .bg-naruto-light {
            background-color: rgba(29, 53, 87, 0.8);
        }

        .text-naruto-primary {
            color: #E63946;
        }

        .btn-naruto {
            background-color: #E63946;
            color: white;
            border-radius: 30px;
            padding: 10px 25px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
        }

        .btn-naruto:hover {
            background-color: #570eb6;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-naruto-outline {
            background-color: transparent;
            color: white;
            border: 2px solid white;
            border-radius: 30px;
            padding: 10px 25px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-naruto-outline:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            color: white;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: #E63946;
        }

        .card-naruto {
            background-color: rgba(29, 53, 87, 0.5);
            border: none;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            height: 100%;
        }

        .card-naruto:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .card-naruto img {
            height: 200px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .card-naruto:hover img {
            transform: scale(1.1);
        }



        .news-card {
            background-color: rgba(29, 53, 87, 0.4);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .news-card img {
            height: 200px;
            object-fit: cover;
        }

        .download-section {
            background: linear-gradient(to bottom, rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.8)), url('img/火影2.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
            padding: 100px 0;
        }

        .download-btn {
            display: flex;
            align-items: center;
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-align: left;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .download-btn i {
            font-size: 24px;
            margin-right: 15px;
        }

        .download-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .download-btn .small-text {
            font-size: 12px;
            font-weight: 400;
            display: block;
        }



        footer {
            background-color: #1D3557;
            color: #aaa;
            padding: 60px 0 20px;
        }

        footer h5 {
            color: white;
            margin-bottom: 20px;
            font-weight: 600;
        }

        footer a {
            color: #aaa;
            transition: color 0.3s ease;
            display: block;
            margin-bottom: 10px;
        }

        footer a:hover {
            color: white;
            text-decoration: none;
        }

        .footer-divider {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin: 30px 0;
        }

        .hero-section {
            height: 100vh;
            min-height: 600px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(29, 53, 87, 0.6), rgba(29, 53, 87, 0.8));
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            text-align: center;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 20px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 40px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .hero-slide.active {
            opacity: 1;
        }

        .nav-scrolled {
            background-color: rgba(29, 53, 87, 0.95) !important;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.8rem;
        }

        .navbar-brand i {
            color: #E63946;
            margin-right: 10px;
        }

        .navbar-dark .navbar-nav .nav-link {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            padding: 10px 20px;
            transition: all 0.3s ease;
        }

        .navbar-dark .navbar-nav .nav-link:hover {
            color: #E63946;
        }

        .navbar-toggler {
            border: none;
            color: white;
            font-size: 1.5rem;
        }

        .modal-content {
            border-radius: 15px;
            border: none;
        }

        .modal-header {
            border-bottom: none;
            padding-bottom: 0;
        }

        .modal-title {
            font-weight: 700;
            text-align: center;
            width: 100%;
        }

        .form-control {
            border-radius: 10px;
            padding: 12px 15px;
            border: 1px solid #ddd;
        }

        .form-control:focus {
            border-color: #E63946;
            box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 2rem;
            }
        }
    </style>
</head>

<body>
    <!-- 导航栏 -->
    <div class="row">
        <nav id="navbar" class="navbar navbar-expand-lg navbar-dark bg-naruto fixed-top py-3">
            <div class="container">
                <a class="navbar-brand" href="#">
                    <i class="fas fa-fire"></i>火影忍者手游
                </a>

                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#mainNav">
                    <i class="fas fa-bars"></i>
                </button>

                <div class="collapse navbar-collapse" id="mainNav">
                    <ul class="navbar-nav ml-auto">
                        <li class="nav-item">
                            <a class="nav-link" href="index.html">首页</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="搜索.html">搜索</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="视频播放.html">视频介绍</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="个人界面.html">个人界面</a>
                        </li>

                    </ul>

                    <div class="ml-lg-3 mt-3 mt-lg-0">
                        <button id="loginBtn" class="btn btn-naruto mr-2">登录</button>
                        <button id="registerBtn" class="btn btn-naruto-outline">注册</button>
                        <button type="button" class="btn btn-secondary example-popover" data-container="body"
                            data-toggle="popover" data-placement="bottom"
                            data-content="玩法攻略：深入了解每个忍者的独特技能和连招技巧，掌握战斗节奏；团队协作战术：学习如何与队友配合，发挥最强战斗力，赢得胜利。\n最新资讯：「博人传」版本更新，全新忍者登场！本次更新带来了全新的博人传剧情，新增角色漩涡博人、巳月、佐良娜，以及一系列全新玩法和活动...">
                            下拉菜单
                        </button>
                    </div>
                    <!-- 下拉菜单(dropdown)变体 -->
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">更多
                            <span class="caret"></span></a>
                        <ul class="dropdown-menu" style="background-color: #1D3557; color: white;">
                            <li>
                                <a href="#guide">玩法攻略</a>
                            </li>
                            <li>
                                <a href="#news">最新资讯</a>
                            </li>
                            <li>
                                <a href="#download">下载区域</a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">分离的链接</a>
                            </li>
                        </ul>
                    </li>
                </div>
            </div>
        </nav>
    </div>

    <!-- 轮播图区域 -->
    <section id="home" class="hero-section">
        <button class="carousel-control-prev" type="button" data-bs-target="#home" data-bs-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Previous</span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#home" data-bs-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Next</span>
        </button>
        <div class="hero-slide active" style="background-image: url('img/火影7.jpg');"></div>
        <div class="hero-slide" style="background-image: url('img/火影6.jpg');"></div>
        <div class="hero-slide" style="background-image: url('img/火影8.jpg');"></div>

        <div class="hero-overlay"></div>

        <div class="container hero-content">
            <div class="row justify-content-center">
                <div class="col-12">
                    <h1 class="hero-title">火影忍者手游</h1>
                    <p class="hero-subtitle">体验热血战斗，觉醒忍者之力</p>

                    <div class="mt-5">
                        <button class="btn btn-naruto btn-lg mr-3 mb-3 mb-md-0">
                            <i class="fas fa-download mr-2"></i>立即下载
                        </button>
                        <button class="btn btn-naruto-outline btn-lg">
                            <i class="fas fa-play-circle mr-2"></i>观看视频
                        </button>
                    </div>
                </div>
            </div>
        </div>

        <div class="carousel-dots position-absolute" style="bottom: 40px; left: 0; right: 0;">
            <div class="d-flex justify-content-center">
                <button class="carousel-dot active bg-primary rounded-circle mx-1"
                    style="width: 12px; height: 12px; border: none;"></button>
                <button class="carousel-dot bg-white rounded-circle mx-1"
                    style="width: 12px; height: 12px; border: none; opacity: 0.5;"></button>
                <button class="carousel-dot bg-white rounded-circle mx-1"
                    style="width: 12px; height: 12px; border: none; opacity: 0.5;"></button>
            </div>
        </div>
    </section>

    <!-- 玩法攻略 -->
    <section id="guide" class="py-5 bg-naruto">
        <div class="container py-5">
            <h2 class="section-title">玩法攻略</h2>

            <div class="row">
                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影7.jpg" class="card-img-top" alt="忍者技能">
                        <div class="card-body">
                            <h3 class="card-title text-white">忍者技能详解</h3>
                            <p class="card-text text-light">深入了解每个忍者的独特技能和连招技巧，掌握战斗节奏。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影4.jpg" class="card-img-top" alt="团队协作">
                        <div class="card-body">
                            <h3 class="card-title text-white">团队协作战术</h3>
                            <p class="card-text text-light">学习如何与队友配合，发挥最强战斗力，赢得胜利。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影6.jpg" class="card-img-top" alt="热血决斗场">
                        <div class="card-body">
                            <h3 class="card-title text-white">热血决斗场</h3>
                            <p class="card-text text-light">在决斗场热血博弈，体验忍者间的切磋。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影3.jpg" class="card-img-top" alt="忍者还原原著">
                        <div class="card-body">
                            <h3 class="card-title text-white">忍者还原原著</h3>
                            <p class="card-text text-light">根据火影忍者，高度还原剧情中忍者细节，身临其境地感受忍者对决。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影9.jpg" class="card-img-top" alt="原创新角色">
                        <div class="card-body">
                            <h3 class="card-title text-white">原创新角色</h3>
                            <p class="card-text text-light">全新忍者背景，自主撰写故事，设计全新忍者，体验更丰富。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-6 col-lg-4 mb-4">
                    <div class="card card-naruto">
                        <img src="img/火影8.jpg" class="card-img-top" alt="忍界英雄登场">
                        <div class="card-body">
                            <h3 class="card-title text-white">忍界英雄登场</h3>
                            <p class="card-text text-light">拯救忍界的英雄，九喇嘛链接-漩涡鸣人，强力登场决斗场。</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                查看详情 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>


    <!-- 最新资讯 -->
    <section id="news" class="py-5 bg-naruto">
        <div class="container py-5">
            <h2 class="section-title">最新资讯</h2>

            <div class="row">
                <div class="col-md-4 mb-4">
                    <div class="news-card">
                        <img src="img/博人传.jpg" class="card-img-top" alt="版本更新">
                        <div class="card-body">
                            <div class="d-flex justify-content-between mb-3">
                                <span class="text-light"><i class="far fa-calendar mr-1"></i> 2025-05-15</span>
                                <span class="text-light"><i class="far fa-eye mr-1"></i> 2.5k</span>
                            </div>
                            <h3 class="text-white mb-3">「博人传」版本更新，全新忍者登场！</h3>
                            <p class="text-light mb-4">本次更新带来了全新的博人传剧情，新增角色漩涡博人、巳月、佐良娜，以及一系列全新玩法和活动...</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                阅读全文 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-4 mb-4">
                    <div class="news-card">
                        <img src="img/火影3.jpg" class="card-img-top" alt="活动预告">
                        <div class="card-body">
                            <div class="d-flex justify-content-between mb-3">
                                <span class="text-light"><i class="far fa-calendar mr-1"></i> 2025-05-10</span>
                                <span class="text-light"><i class="far fa-eye mr-1"></i> 1.8k</span>
                            </div>
                            <h3 class="text-white mb-3">「忍者大集结」限时活动开启！</h3>
                            <p class="text-light mb-4">参与活动，收集忍者碎片，兑换稀有S级忍者。更有丰厚奖励等你来拿，不要错过...</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                阅读全文 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="col-md-4 mb-4">
                    <div class="news-card">
                        <img src="img/赛事.jpg" class="card-img-top" alt="赛事新闻">
                        <div class="card-body">
                            <div class="d-flex justify-content-between mb-3">
                                <span class="text-light"><i class="far fa-calendar mr-1"></i> 2025-05-05</span>
                                <span class="text-light"><i class="far fa-eye mr-1"></i> 3.2k</span>
                            </div>
                            <h3 class="text-white mb-3">2025年度忍者大师赛全球总决赛赛程公布</h3>
                            <p class="text-light mb-4">来自全球的顶尖忍者玩家将汇聚一堂，争夺年度总冠军头衔和丰厚奖金。直播信息和赛程安排...</p>
                            <a href="#" class="text-naruto-primary font-weight-bold">
                                阅读全文 <i class="fas fa-arrow-right ml-2"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="text-center mt-5">
                <a href="#" class="btn btn-naruto-outline px-5 py-3">
                    查看更多资讯 <i class="fas fa-angle-right ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- 下载区域 -->
    <section id="download" class="download-section">
        <div class="container text-center">
            <h2 class="section-title">立即加入忍者世界</h2>
            <p class="text-light lead mb-5">下载火影忍者手游，体验热血战斗，觉醒忍者之力！与好友一起并肩作战，守护木叶村的和平！</p>

            <div class="row justify-content-center">
                <div class="col-lg-8">
                    <div class="row">
                        <div class="col-md-4 mb-4">
                            <button class="download-btn bg-white">

                                <div>
                                    <span class="small-text">下载</span>
                                    <span>App Store</span>
                                </div>
                            </button>
                        </div>

                        <div class="col-md-4 mb-4">
                            <button class="download-btn bg-white">

                                <div>
                                    <span class="small-text">下载</span>
                                    <span>Google Play</span>
                                </div>
                            </button>
                        </div>

                        <div class="col-md-4 mb-4">
                            <button class="download-btn bg-primary text-white">
                                <i class="fas fa-qrcode"></i>
                                <div>
                                    <span class="small-text">扫码</span>
                                    <span>下载游戏</span>
                                </div>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-3 mb-4 mb-md-0">
                    <h5>关于游戏</h5>
                    <a href="#">游戏介绍</a>
                    <a href="#">忍者图鉴</a>
                    <a href="#">玩法攻略</a>
                    <a href="#">游戏资讯</a>
                </div>

                <div class="col-md-3 mb-4 mb-md-0">
                    <h5>支持与服务</h5>
                    <a href="#">常见问题</a>
                    <a href="#">联系客服</a>
                    <a href="#">意见反馈</a>
                    <a href="#">防沉迷系统</a>
                </div>

                <div class="col-md-3 mb-4 mb-md-0">
                    <h5>玩家社区</h5>
                    <a href="#">官方论坛</a>
                    <a href="#">玩家交流群</a>
                    <a href="#">赛事直播</a>
                    <a href="#">同人创作</a>
                </div>

                <div class="col-md-3">
                    <h5>官方合作</h5>
                    <a href="#">商务合作</a>
                    <a href="#">内容合作</a>
                    <a href="#">赛事合作</a>
                    <a href="#">青训招募</a>
                </div>
            </div>

            <div class="footer-divider"></div>

            <div class="row">
                <div class="col-md-6 mb-3 mb-md-0">
                    <p class="mb-0">© 2025 火影忍者手游版权所有</p>
                </div>

                <div class="col-md-6 text-md-right">
                    <a href="#" class="d-inline-block mr-3">隐私政策</a>
                    <a href="#" class="d-inline-block mr-3">用户协议</a>
                    <a href="#" class="d-inline-block mr-3">儿童隐私保护指引</a>
                    <a href="#">网络游戏服务</a>
                </div>
            </div>

            <div class="mt-4 text-center">
                <p class="small">本游戏适合12岁以上玩家使用；为了你的健康，请合理控制游戏时间。</p>
                <p class="small">本游戏改编自《火影忍者》漫画，相关著作权及商标权均由集英社、VIZ Media、Shueisha Inc.所有。</p>
            </div>
        </div>
    </footer>

    <!-- 登录模态框 -->
    <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">用户登录</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" id="username">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control" id="password">
                        </div>
                        <div class="form-group form-check">
                            <input type="checkbox" class="form-check-input" id="remember">
                            <label class="form-check-label" for="remember">记住我</label>
                        </div>
                        <div class="custom-control custom-checkbox mb-3">
                            <input type="checkbox" class="custom-control-input" id="agreement">
                            <label class="custom-control-label" for="agreement">
                                我已阅读并同意 <a href="#" class="text-primary">用户协议</a> 和 <a href="#"
                                    class="text-primary">隐私政策</a>
                            </label>
                        </div>
                        <button type="button" class="btn btn-naruto btn-block">登录</button>
                    </form>
                </div>
                <div class="modal-footer justify-content-center">
                    <p class="mb-0">还没有账号？ <a href="#" class="text-primary font-weight-bold"
                            id="showRegisterModal">立即注册</a></p>
                </div>
            </div>
        </div>
    </div>

    <!-- 注册模态框 -->
    <div class="modal fade" id="registerModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">用户注册</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="reg-username">用户名</label>
                            <input type="text" class="form-control" id="reg-username">
                        </div>
                        <div class="form-group">
                            <label for="reg-email">邮箱</label>
                            <input type="email" class="form-control" id="reg-email">
                        </div>
                        <div class="form-group">
                            <label for="reg-password">密码</label>
                            <input type="password" class="form-control" id="reg-password">
                        </div>
                        <div class="form-group">
                            <label for="reg-confirm-password">确认密码</label>
                            <input type="password" class="form-control" id="reg-confirm-password">
                        </div>
                        <div class="custom-control custom-checkbox mb-3">
                            <input type="checkbox" class="custom-control-input" id="reg-agreement">
                            <label class="custom-control-label" for="reg-agreement">
                                我已阅读并同意 <a href="#" class="text-primary">用户协议</a> 和 <a href="#"
                                    class="text-primary">隐私政策</a>
                            </label>
                        </div>
                        <button type="button" class="btn btn-naruto btn-block">注册</button>
                    </form>
                </div>
                <div class="modal-footer justify-content-center">
                    <p class="mb-0">已有账号？ <a href="#" class="text-primary font-weight-bold" id="showLoginModal">立即登录</a>
                    </p>
                </div>
            </div>
        </div>
    </div>
    <script>
        // 导航栏滚动效果
        $(window).scroll(function () {
            if ($(window).scrollTop() > 50) {
                $('#navbar').addClass('nav-scrolled');
            } else {
                $('#navbar').removeClass('nav-scrolled');
            }
        });

        // 轮播图功能
        let currentSlide = 0;
        const slides = $('.hero-slide');
        const dots = $('.carousel-dot');

        function showSlide(index) {
            slides.removeClass('active');
            dots.removeClass('active bg-primary').addClass('bg-white');
            slides.eq(index).addClass('active');
            dots.eq(index).addClass('active bg-primary').removeClass('bg-white');
            currentSlide = index;
        }

        function nextSlide() {
            let next = currentSlide + 1;
            if (next >= slides.length) next = 0;
            showSlide(next);
        }

        // 初始化轮播图
        showSlide(0);
        let slideInterval = setInterval(nextSlide, 5000);

        // 点击导航点切换幻灯片
        dots.click(function () {
            const index = $(this).index();
            clearInterval(slideInterval);
            showSlide(index);
            slideInterval = setInterval(nextSlide, 5000);
        });

        // 登录/注册模态框
        $('#loginBtn').click(function () {
            $('#loginModal').modal('show');
        });

        $('#registerBtn').click(function () {
            $('#registerModal').modal('show');
        });

        $('#showRegisterModal').click(function (e) {
            e.preventDefault();
            $('#loginModal').modal('hide');
            $('#registerModal').modal('show');
        });

        $('#showLoginModal').click(function (e) {
            e.preventDefault();
            $('#registerModal').modal('hide');
            $('#loginModal').modal('show');
        });

        // 平滑滚动
        $('a[href^="#"]').on('click', function (e) {
            e.preventDefault();
            const target = this.hash;
            const $target = $(target);

            $('html, body').animate({
                'scrollTop': $target.offset().top - 70
            }, 800, 'swing');
        });
    </script>
</body>

</html>

<script>
    $(function () {
        $('.example-popover').popover({
            container: 'body'
        })
    })
</script>